package org.ndx.jsg.input;

import org.ndx.jsg.input.image.ImageBuilder;
import org.ndx.jsg.input.xml.JSGXmlBuilder;

import com.google.inject.AbstractModule;
import com.google.inject.multibindings.Multibinder;

/**
 * Module used for {@link FileInfosProvider}
 * @author ndx
 *
 */
public class FileInfosProviderModule extends AbstractModule {

	@Override
	protected void configure() {
		Multibinder<FileInfosBuilder> multibinder = Multibinder.newSetBinder(binder(), FileInfosBuilder.class);
		multibinder.addBinding().to(JSGXmlBuilder.class);
		multibinder.addBinding().to(ImageBuilder.class);
		bind(FileInfosProvider.class).to(DefaultFileInfosProvider.class);
	}

}
